
#include <thread>
#include <chrono>
#include "protocol/include/Market.hpp"

extern int tcp_client();

extern int udp_client();

Market::Market& getMarket()
{
    static Market::Market market;
    return market;
}

int main()
{
    std::thread udp(udp_client);
    std::this_thread::sleep_for(std::chrono::seconds(1));
    tcp_client();

    udp.join();
    return 0;
}